import request from '@/config/axios';
import { baseUrl } from '@/config/env';

export function fetchList(query) {
  return request({
    url: baseUrl+'/wpan/list',
    method: 'get',
    params:query
  })
}


export function getRecycle() {
  return request({
    url: baseUrl+'/wpan/getRecycle',
    method: 'get',
  })
}
export function remove(query) {
  return request({
    url: baseUrl+'/wpan/remove',
    method: 'put',
    data:query,
  })
}
export function recovery(query) {
  return request({
    url: baseUrl+'/wpan/recovery',
    method: 'put',
    data:query,
  })
}
export function trash(query) {
  return request({
    url: baseUrl+'/wpan/trash',
    method: 'put',
    data:query
  })
}
export function clearRecycle() {
  return request({
    url: baseUrl+'/wpan/clearRecycle',
    method: 'put',
  })
}
